﻿#region Librerias

using System;
using System.Collections.Generic;
using ESF.General;
using ESF.SFT.Proxies;
using ESF.SFT.FileUploader.Presenter.FileReceiverGeneral;
using ESF.General.Text;
using ESF.General.Entity;
using Gtk;
using ESF.GTK;

#endregion


namespace ESF.SFT.FileUploaderGTK
{
	public static class Program 
	{
		#region Variables

		internal static List<Couple<string, string>>Conf;

		internal static List<FileRegisterValidatorSet> FileRegisterValidatorSets;

		#endregion


		#region Ventanas

		internal static SplashScreen winSP;

		internal static InternetConnectionOptions winICO;

		internal static SignInWindow winSignIn;

		internal static FileUploaderWindow winFilUp;

		#endregion


		#region Punto de Inicio

		public static void Main(string[] args)
		{
			Log.CurrentStep = "Inicio de Aplicación"; 

			Log.SetDefaultUnhanledExceptionManagers ();

			GTKHelper.SetDefaultUnhanledExceptionManagers ();


			try
			{
				Application.Init ();
			
				winSP = new SplashScreen();
				winSP.Show ();
			
				Application.Run ();
			}
			catch (Exception pEx)
			{
				Log.Error(pEx);
			}
		}

		#endregion
	}
}
